﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MySqlCode
{
    public partial class DataItem : UserControl
    {
        [Description("数据库项的GUID")]
        public string GUID { get; set; }
        [Description("显示的文本")]
        public string LabText
        {
            get
            {
                return this.labTitle.Text;
            }
            set
            {
                this.labTitle.Text = value;
            }
        }

        public DataItem()
        {
            InitializeComponent();
        }

        private void labTitle_Click(object sender, EventArgs e)
        {
            this.OnClick(e);
        }

        private void labTitle_DoubleClick(object sender, EventArgs e)
        {
            this.OnDoubleClick(e);
        }
    }
}
